package com.mainworks.commons.impl;

import org.springframework.security.crypto.password.PasswordEncoder;

public class PassWordEncrypted implements PasswordEncoder {
    
    /**
     * 密码加密方法(算法)
     *@Author: HuangMinJie
     *@param  charSequence 未加工的密码
     *@CreateDate:  2021/10/31 17:22
     *@Description:
     */
    @Override
    public String encode(CharSequence charSequence) {
        return null;
    }
    
    /**
     * 密码对比方法
     *@Author: HuangMinJie
     *@param  rawPassword 未加工的密码
     *@param  encodedPassword 加密的密码
     *@CreateDate:  2021/10/31 17:20
     *@Description:
     */
    @Override
    public boolean matches(CharSequence rawPassword, String encodedPassword) {
        return true;
    }

    @Override
    public boolean upgradeEncoding(String encodedPassword) {
        return false;
    }
}
